<html>
<head>
	<title>Variables5</title>
</head>
<body>
	<h1>Promedio</h1>
	<script languaje="javascript">
var nota1,nota2,nota3;
nota1 = parseInt(prompt('Ingrese la nota1: ', ''));
nota2 = parseInt(prompt('Ingrese la nota2: ', ''));
nota3 = parseInt(prompt('Ingrese la nota3: ', ''));
var prom;
prom = (nota1 + nota2 + nota3)/3;

if(prom >= 7){

	alert('Aprovado');
}
else{

	if (prom>=4) {
		alert('Regular');
	}
	else{
		alert('Reprovado');
	}
}	
	



	</script>

</body>
</html>